package com.example.dream.satrt.service.impl;

import com.example.dream.satrt.bean.UserTest;
import com.example.dream.satrt.dao.UserDao;
import com.example.dream.satrt.service.UserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserDao userDao;
    @Override
    public List<UserTest> findAllList() {
        return userDao.findAllList();
    }

    @Override
    public List<UserTest> findById(Integer id) {
        return userDao.findById(id);
    }


    @Override
    public boolean insert(UserTest entity) {
        return userDao.insert(entity);
    }

    @Override
    public boolean update(UserTest entity) {
        return userDao.update(entity);
    }

    @Override
    public boolean delete(Integer id) {
        return userDao.delete(id);
    }
}
